//
//  MYXRecieveMoneyListViewModel.m
//  meiyinxiang
//
//  Created by 媒印象 on 2018/1/10.
//  Copyright © 2018年 hbjApple. All rights reserved.
//
/*
@property(nonatomic,strong) NSString * cateLuckyMoneyId;
@property(nonatomic,strong) NSString *pid;//大红包id
@property(nonatomic,strong) NSString *num;
@property(nonatomic,strong) NSString *tid;
@property(nonatomic,strong) NSString *pick_time;
@property(nonatomic,strong) NSString *is_pick;
@property(nonatomic,strong) NSString *content;
@property(nonatomic,strong) NSString *username;
@property(nonatomic,strong) NSString *userface;
@property(nonatomic,strong) UIImage<Optional> *iconImg;
@property(nonatomic,strong) NSString *count;
*/


#import "MYXRecieveMoneyListViewModel.h"

@implementation MYXRecieveMoneyListViewModel
- (id)initWithModel:(NearbyLuckyMoneyDetail *)model{
    if (self = [super init]) {
        self.cateLuckyMoneyId = model.cateLuckyMoneyId;
        self.pid = model.pid;
        self.num = model.num;
        self.tid = model.tid;
        self.pick_time = model.pick_time;
        self.is_pick = model.is_pick;
        self.content = model.content;
        self.username = model.username;
        self.userface = model.userface;
        self.iconImg = model.iconImg;
        //self.count = model.count;
        NSInteger countInt = model.count.integerValue;
        self.cellHeight = countInt > 1 ? 91 : 64;
        self.showMoreComendLabel = self.cellHeight == 91 ? YES : NO;
        self.count = [NSString stringWithFormat:@"共%ld条回复 >",countInt];
        
    }
    return self;
}
@end
